package com.example.administrator.daydayappmarket.personal.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.example.administrator.daydayappmarket.MainActivity;
import com.example.administrator.daydayappmarket.R;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

public class PersonalUpgradeActivity extends AppCompatActivity {

    @InjectView(R.id.activity_personal_upgrade_backRelative)
    RelativeLayout activityPersonalUpgradeBackRelative;
    @InjectView(R.id.activity_personal_upgrade_backRelative_emptyRelative_image)
    ImageView activityPersonalUpgradeBackRelativeEmptyRelativeImage;
    @InjectView(R.id.activity_personal_upgrade_backRelative_emptyRelative_button)
    Button activityPersonalUpgradeBackRelativeEmptyRelativeButton;
    @InjectView(R.id.activity_personal_upgrade_backRelative_emptyRelative)
    RelativeLayout activityPersonalUpgradeBackRelativeEmptyRelative;
    @InjectView(R.id.activity_personal_upgrade)
    RelativeLayout activityPersonalUpgrade;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_personal_upgrade);
        ButterKnife.inject(this);


    }

    @OnClick({R.id.activity_personal_upgrade_backRelative, R.id.activity_personal_upgrade_backRelative_emptyRelative_image, R.id.activity_personal_upgrade_backRelative_emptyRelative_button, R.id.activity_personal_upgrade_backRelative_emptyRelative, R.id.activity_personal_upgrade})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.activity_personal_upgrade_backRelative:
                finish();
                break;
            case R.id.activity_personal_upgrade_backRelative_emptyRelative_image:
                break;
            case R.id.activity_personal_upgrade_backRelative_emptyRelative_button:
                Intent intent=new Intent(PersonalUpgradeActivity.this, MainActivity.class);
                startActivity(intent);
                break;
            case R.id.activity_personal_upgrade_backRelative_emptyRelative:
                break;
            case R.id.activity_personal_upgrade:
                break;
        }
    }
}
